# /etc/systemd/system/traktarr.service

[Unit]
Description=traktarr
After=network-online.target docker.service

[Service]
User={{ user.name }}
Group={{ user.name }}
Type=simple
WorkingDirectory=/opt/traktarr/
TimeoutStartSec=900
ExecStart=/usr/bin/python3 /opt/traktarr/traktarr.py run
Restart=always
RestartSec=10

[Install]
WantedBy=default.target
